package com.zhuiyun.project.api.venuemanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.system.user.entity.SysUser;
import com.zhuiyun.project.api.system.user.entity.SysUserRole;
import com.zhuiyun.project.api.venuemanagement.entity.VenueManagement;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName CoachManagementMapper
 * @Description TODO
 * @Author wuwan
 * @Date 2023/11/2 13:40
 **/
@Mapper
public interface VenueManagementMapper extends BaseMapper<VenueManagement> {

    /*
    * @Author wuwan
    * @Description 添加场馆
    * @Date 2023/11/2 14:18
    * @Return
    */
    Integer addVenue(VenueManagement venueManagement);
    /*
     * @Author wuwan
     * @Description 修改场馆
     * @Date 2023/11/3 14:16
     * @Return
     */
    Integer updateVenue(VenueManagement venueManagement);
    /*
    * @Author wuwan
    * @Description 场馆信息分页查询
    * @Date 2023/11/3 14:15
    * @Return
    */
    List<VenueManagement> selectVenue(String venueName,String venuePhone);
//    /*
//    * @Author wuwan
//    * @Description 修改场馆状态
//    * @Date 2023/11/6 11:02
//    * @Return
//    */
//    Integer changeUserStatus(VenueManagement venueManagement);
    /*
    * @Author wuwan
    * @Description 将场馆账号添加至账号管理表
    * @Date 2023/11/6 11:02
    * @Return
    */
    Integer addSysUser(SysUser sysUser);
    /*
    * @Author wuwan
    * @Description 角色表自动添加
    * @Date 2023/11/7 9:06
    * @Return
    */
    Integer addSysUserRole(SysUserRole sysUserRole);
    List<VenueManagement> selectById(PageRequest pageRequest, String id);
}

